{% extends "base.html" %} {% block title %}Doctor Dashboard - Quick Care Connect{% endblock %} {% block content %}
{% if doctor.user.profile_picture %} {{ doctor.user.name }}
{{ doctor.user.name[0].upper() }}
{% else %}
{{ doctor.user.name[0].upper() }}
{% endif %}
{{ doctor.user.name }}

{{ doctor.specialization }}

{% if doctor.is_approved %} Approved {% else %} Pending Approval {% endif %}
Edit Profile
{% if not doctor.profile_completed %}
Complete Profile

Complete your profile to start receiving appointments.

Complete Now
{% endif %}

Dashboard

Welcome back, {{ doctor.user.name }}! Here's your practice overview.

{{ stats.total }}
Total Appointments
{{ stats.pending }}
Pending
{{ stats.approved }}
Approved
{{ stats.completed }}
Completed
{{ stats.no_show }}
No-show
{% if cancellation_requests %}
Cancellation Requests
{% for appointment in cancellation_requests %}
{{ appointment.patient.user.name }}

{{ appointment.appointment_date.strftime('%B %d, %Y') }} at {{ appointment.appointment_time.strftime('%I:%M %p') }}

Reason: {{ appointment.cancellation_reason }}
{% endfor %}
{% endif %}
Recent Appointments
View All
{% if recent_appointments %} {% for appointment in recent_appointments %}
{{ appointment.patient.user.name }}

{{ appointment.disease_category }}

{{ appointment.appointment_date.strftime('%B %d, %Y') }} {{ appointment.appointment_time.strftime('%I:%M %p') }}
{{ appointment.status.replace('_', ' ').title() }}
View {% if appointment.status == 'pending' %}
{% elif appointment.status in ['approved', 'completed', 'completed_pending_review', 'disputed'] %} {% if appointment.payment_status == 'approved' and appointment.status in ['approved', 'completed'] %} {% if appointment.status == 'completed' %}View Chat{% else %}Chat{% endif %} {% endif %} {% if appointment.prescription %} View Rx {% endif %} {% if appointment.patient_completed and appointment.status != 'completed' %} Write Rx & Complete {% elif not appointment.patient_completed and appointment.status != 'completed' %} Waiting {% endif %} {% endif %}
{% endfor %} {% else %}
No appointments yet

Complete your profile to start receiving appointment requests.

Complete Profile
{% endif %}
Recent Articles
View All
{% if recent_blogs %} {% for blog in recent_blogs %}
{{ blog.title }}
{{ blog.category }} {{ blog.created_at.strftime('%b %d, %Y') }}
{{ 'Under Review' if blog.status == 'pending' else blog.status|title }}
{% endfor %} {% else %}
No articles drafted yet

Establish your reputation by writing insightful health articles.

Start Writing
{% endif %}
This Month

{{ stats.this_month }}

Appointments

{{ stats.this_month_completed }}

Completed
Patient Feedback

{{ stats.avg_rating }}

Average Rating
{% set rating_int = stats.avg_rating | int %} {% set rating_frac = stats.avg_rating - rating_int %} {% for i in range(5) %} {% if i < rating_int %} {% elif i == rating_int and rating_frac > 0 %} {% else %} {% endif %} {% endfor %}
{% endblock %}